import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import 'amfe-flexible'
// Vue.config.productionTip = false
import { NavBar, Uploader, Dialog, Button, Card, Progress, Cell, CellGroup } from 'vant'

Vue.use(NavBar)
Vue.use(Uploader)
Vue.use(Dialog)
Vue.use(Button)
Vue.use(Card)
Vue.use(Progress)
Vue.use(Cell)
Vue.use(CellGroup)

Vue.prototype.$Dialog = Dialog

new Vue({
  router,
  store,
  render: h => h(App),
  // 开启全局事件总线
  beforeCreate () {
    Vue.prototype.$bus = this
  }

}).$mount('#app')
